package com.example.ylsys.plants.contract;

import android.content.Context;

import com.example.ylsys.plants.base.BaseView;
import com.example.ylsys.plants.bean.BackResultBean;
import com.example.ylsys.plants.bean.LoginParamsBean;

import java.util.Map;

import io.reactivex.Observable;

public interface LoginDialogContract {

    interface Login_Model{
        Observable<BackResultBean> ac_Api (Map<String, String> url_map, Map<String, String> post_map);
        Observable<BackResultBean> login_Api(Map<String, String> url_map, Map<String, String> post_map);
        void save_Data (String tel_number, String secret_code, Context context);
    }

    interface View extends BaseView{
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void getAcOnSuccess(BackResultBean backResultBean);

        void loginOnSuccess(String result);



    }

    interface Presenter{
        void getAc(Map<String, String> url_map, Map<String, String> post_map);
        void login (Map<String, String> url_map, Map<String, String> post_map);
        void SaveData(LoginParamsBean loginParamsBean,Context context);
    }

}
